package com.srx.elasticsearch.controller;/*
package com.srx.elasticsearch.controller;

import com.srx.elasticsearch.service.DormitoryService;
import com.srx.openfeign.dto.NoticeDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

*/
/**
 * 图书控制器类，处理与用户相关的请求
 * <p>
 * 该类负责处理用户查询相关的操作。
 * @author srx
 *//*

@RestController
@RequestMapping("/elasticsearch/dormitory")
public class DormitoryController
{

    private final DormitoryService dormitoryService;


	@Autowired
	public DormitoryController(DormitoryService dormitoryService)
    {
        this.dormitoryService = dormitoryService;
    }




    */
/**
     * 获取所有宿舍公告信息数量
     * @return 公告数量
     *//*

    @GetMapping("/notice-count")
    public long getAllDormitoryNoticesCount() throws IOException
    {
        return dormitoryService.getAllDormitoryNoticesCount();
    }


    */
/**
     * 根据搜索词获取宿舍公告数量
     * @param searchTerm 搜索词
     * @return 公告数量
     *//*

    @GetMapping("/search-notice-count/{searchTerm}")
    public long getSearchDormitoryNoticeCount(@PathVariable("searchTerm") String searchTerm) throws IOException
    {
        return dormitoryService.getSearchDormitoryNoticeCount(searchTerm);
    }


    */
/**
     * 根据搜索词获取指定搜索词宿舍公告列表
     *
     * @param page 页码
     * @param size 每页数量
     * @return 指定页的宿舍列表
     *//*

    @GetMapping("/search-notice/{page}/{size}/{searchTerm}")
    public List<NoticeDTO> getSearchDormitoryNoticeByPage(@PathVariable("page") int page, @PathVariable("size") int size, @PathVariable("searchTerm") String searchTerm) throws IOException
    {
        return dormitoryService.getSearchDormitoryNoticeByPage(page, size, searchTerm);
    }


	*/
/**
	 * 根据用户ID获取宿舍ID
	 * @param userId 用户ID
	 * @return 宿舍ID
	 *//*

	@GetMapping("/dormitory-id/{userId}")
	public int getDormitoryIdByUserId(@PathVariable("userId") int userId) throws IOException
	{
		return dormitoryService.getDormitoryIdByUserId(userId);
	}

    */
/**
     * 获取所有待删除的宿舍公告ID列表
     * @return 所有待删除的图书馆公告ID列表
     *//*

    @GetMapping("/delete-notice-id")
    public List<Integer> getDeleteDormitoryNoticeIdList() throws IOException
    {
        return dormitoryService.getDeleteDormitoryNoticeIdList();
    }

}
*/
